﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using KingRoad.EPM.ProjectInfoIBLL;
using KingRoad.EPM.ProjectInfoBLL;
using KingRoad.EPM.Entity;
using KingRoad.EPM.Web.Util;
using KingRoad.EPM.ProjectInfoEntity;
using MySoft.Data;

namespace KingRoad.EPM.Web.Areas.Permission.Controllers
{
    public class WorkFlowSetController : Controller
    {
        private IProject_PrjInfoBLL prjInfoBLL = new Project_PrjInfoBLL();
       
        //
        // GET: /Permission/WorkFlowSet/
        /// <summary>
        /// 建设项目信息管理视图
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            return View();
        }

        /// <summary>
        /// 获取项目列表数据
        /// </summary>
        /// <param name="query">分页对象</param>
        /// <param name="queryText">搜索项目名称</param>
        /// <returns></returns>
        public ActionResult GetProjectList(QueryBase query, string queryText)
        {
            IDataPage<IList<PROJECT_PRJINFO>> list = prjInfoBLL.GetAllPrjinfo(queryText, query);
            var jqGridData = WebUtility.TojqGridData<PROJECT_PRJINFO>(list);
            return Json(jqGridData);
        }

    }
}
